﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<CourseSystem.Core.Entities.SectionInfo>" %>

<%@ Import Namespace="CourseSystem.Common.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    课程章节(节)管理
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% Html.RenderPartial("AdminTopUc", "课程章节(节)管理"); %>
    <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
        <tr>
            <td height="5" bgcolor="#FFFFFF">
            </td>
        </tr>
    </table>
    <% using (Html.BeginForm("SectionEdit", "AdminStudy", new { cid = Model.ChapterId, ran = ViewData["ranStr"] }, FormMethod.Post))
       {%>
    <fieldset>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.OrderId) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.OrderId) %>
            <%: Html.ValidationMessageFor(model => model.OrderId) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.Name) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.Name, new { @class = "longText" })%>
            <%: Html.ValidationMessageFor(model => model.Name) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.CommonContentInfo.DetailContent) %>
        </div>
        <div class="editor-field">
            <%: Html.TextAreaFor(model => model.CommonContentInfo.DetailContent, new { @class = "editArea" })%>
            <%: Html.ValidationMessageFor(model => model.CommonContentInfo.DetailContent)%>
        </div>
        <p>
            <input type="submit" value="保存" /><%=Html.ActionButton("返回", "Section",new{cid=Model.ChapterId})%>
        </p>
    </fieldset>
    <% } %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
    <script type="text/javascript">
        $(function () {
            bindTextAreaEditor('CommonContentInfo_DetailContent', '<%=ViewData["ranStr"] %>');
        });
    </script>
</asp:Content>
